﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo05
{
    /// <summary>
    /// 工具类
    /// </summary>
    class ArrayUtil
    {
        public static bool Empty(int [] num)
        {
            /*int[] num = new int[1] { 1 }*/;
            bool a = true;
            if (num!=null && num.Length!=0)
            {
                for (int i = 0; i < num.Length; i++)
                {
                    if (num[i]!=0)
                    {
                        a = false;
                        break;
                    }
                }
            }return a;
        }
    }
}
